import request from '@/utils/request'

// 查询学科竞赛指导列表
export function listGuidance(query) {
  return request({
    url: '/guidance/guidance/list',
    method: 'get',
    params: query
  })
}

// 查询学科竞赛指导详细
export function getGuidance(scgId) {
  return request({
    url: '/guidance/guidance/' + scgId,
    method: 'get'
  })
}

// 新增学科竞赛指导
export function addGuidance(data) {
  return request({
    url: '/guidance/guidance',
    method: 'post',
    data: data
  })
}

// 修改学科竞赛指导
export function updateGuidance(data) {
  return request({
    url: '/guidance/guidance',
    method: 'put',
    data: data
  })
}

// 删除学科竞赛指导
export function delGuidance(scgId) {
  return request({
    url: '/guidance/guidance/' + scgId,
    method: 'delete'
  })
}
